//获取应用实例
const app = getApp();

Page({
  data: {
    tiSprice:'',
    mony:'80.00',
    drawal:'140.00',
    date:'2020-02-28 10:50:06',
    drawal_state:'提现成功',
    reason:'安静公爱搜房；爱是发挥安上放；哈市；法律 爱是大时代看见爱不是开发改变，可改变的',
    // 组件所需的参数
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '提现记录', //导航栏 中间的标题
    },
    // 此页面 页面内容距最顶部的距离
    height: app.globalData.height * 2 + 20,
  },
  onLoad() {
    let that = this;
    let url = app.globalData.URL+'system/extract/wx/list';
    let data = {};
        app.wxRequest('GET', url, data, (res) => {
          if(res.code!=200){
            wx.showModal({
              title: res.msg
            })
          }else{
          console.log(res)
            that.setData({
              tiSprice:res.rows
            })
          }
        }, (err) => {
          console.log(err.errMsg)
        })
  },
  
})
